package com.itheima.d4_print_stream;

import java.io.PrintWriter;

/*
    目标：掌握打印流：PrintStream/PrintWriter的用法。
 */
public class PrintTest1 {
    public static void main(String[] args) throws Exception {
        PrintWriter pw = new PrintWriter("print2.txt");

        pw.println("Hello World");
        pw.println(true);
        pw.println(130);

        pw.print("Hello World");
        pw.print(true);
        pw.print(130);
        pw.close();
    }
}
